package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ：石破天
 * @date ：Created in 2022年12月17日
 * @description ： 启动类
 * @version: 1.0
 */
@SpringBootApplication
@Slf4j
@ServletComponentScan
//开启事务注解扫描
@EnableTransactionManagement
//开启缓存注解支持
@EnableCaching
public class ReggieApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class,args);
        log.info("项目启动了");
    }
}
